﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ecreate.Model
{
    public class CompanyNews
    {
        private string id;
        private string news_title = String.Empty;
        private DateTime news_date;
        private string news_content = String.Empty;

        // Instantiate empty CompanyNews for inserting
        public CompanyNews() { }

        // Retrieve CompanyNews with Id for updating
        public CompanyNews(string id)
        {
            this.id = id;
        }

        #region Public Properties

        public string ID
        {
            get { return id; }
            set { id = value; }
        }

        public string NewsTitle
        {
            get { return news_title; }
            set { news_title = value; }
        }

        public DateTime NewsDate
        {
            get { return news_date; }
            set { news_date = value; }
        }

        public string NewsContent
        {
            get { return news_content; }
            set { news_content = value; }
        }

        #endregion
    }
}
